import service from '@/utils/request'


// 获取登录日志
export const getLoginLog = (data) => {
    return service({
        method: 'post',
        url: '/log/getLoginLog',
        data
    })
}

// 记录登录日志
export const addLoginLog = (data) => {
    return service({
        method: 'post',
        url: '/log/addLoginLog',
        data
    })
}

// 清空登录日志
export const deleteLoginLog = (data) => {
    return service({
        method: 'post',
        url: '/log/deleteLoginLog',
        data
    })
}


// 获取操作日志
export const getOperationLog = (data) => {
    return service({
        method: 'post',
        url: '/log/getOperationLog',
        data
    })
}

// 记录操作日志
export const addOperationLog = (data) => {
    return service({
        method: 'post',
        url: '/log/addOperationLog',
        data
    })
}

// 清空操作日志
export const deleteOperationLog = (data) => {
    return service({
        method: 'post',
        url: '/log/deleteOperationLog',
        data
    })
}
